import { FrameworkDelegate } from '../model-core';
import { GlobalStore } from '../store';

export * from './global-controllers/global-controllers';

/**
 * 全局默认初始执行
 *
 * @export
 */
export default function () {}

/**
 * 安装框架绘制代理
 *
 * @author chitanda
 * @date 2021-05-12 20:05:11
 * @export
 * @param {FrameworkDelegate} delegate
 */
export function installDelegate(delegate: FrameworkDelegate): void {
  GlobalStore.getInstance().data.delegate = delegate;
}
